package com.aspose.cells;

import java.util.ArrayList;
import java.util.Iterator;

public class zcfm extends zcfs {
   private String b;
   private String c;
   private ArrayList d = new ArrayList();

   public zcfm(zcfq var1, String var2) {
      super(var1);
      this.b = var2;
      this.a(var1);
   }

   public zcfm(zcfq var1, String var2, String var3) {
      super(var1);
      this.b = var3;
      this.c = var2;
      this.a(var1);
   }

   public Iterator iterator() {
      return this.d.iterator();
   }

   public int a() {
      return this.d.size();
   }

   public zcfq a(String var1) {
      for(int var2 = 0; var2 < this.d.size(); ++var2) {
         zcfq var3 = (zcfq)this.d.get(var2);
         if (com.aspose.cells.b.a.zv.b(var3.i(), var1)) {
            return var3;
         }
      }

      return null;
   }

   public zcfq a(int var1) {
      return (zcfq)this.d.get(var1);
   }

   private void a(zcfq var1) {
      for(zcfq var2 = var1.k(); var2 != null; var2 = var2.l()) {
         if (var2.e == 1) {
            if (com.aspose.cells.b.a.zv.b(var2.g, this.b)) {
               if (this.c == null) {
                  com.aspose.cells.b.a.a.ze.a(this.d, (Object)var2);
                  continue;
               }

               if (com.aspose.cells.b.a.zv.b(this.c, var2.f)) {
                  com.aspose.cells.b.a.a.ze.a(this.d, (Object)var2);
                  continue;
               }
            }

            this.a(var2);
         }
      }

   }
}
